﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace automobili_data.interfaces.exceptions
{
    [Serializable]
    public class UserException : Exception
    {
        public UserException() { }
        public UserException(string message) : base(message) { }
        public UserException(string message, Exception inner) : base(message, inner) { }
        protected UserException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }

    [Serializable]
    public class UserNotFoundException : UserException
    {
        public UserNotFoundException() { }
        public UserNotFoundException(string message) : base(message) { }
        public UserNotFoundException(string message, Exception inner) : base(message, inner) { }
        protected UserNotFoundException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }

    [Serializable]
    public class UserAuthenticationFailedException : UserException
    {
        public UserAuthenticationFailedException() { }
        public UserAuthenticationFailedException(string message) : base(message) { }
        public UserAuthenticationFailedException(string message, Exception inner) : base(message, inner) { }
        protected UserAuthenticationFailedException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}
